import request from '@/utils/http'
import { BaseResult } from '@/types/axios'

export default class BigFileService  {

  static test() {
    return request.get<BaseResult>({
      url: '/uploadApi/test'
    }) 
  }
  // 检查分片
  static check(params: any) {
    return request.get<BaseResult>({
      url: '/uploadApi/check',
      params
    })
  }
  
  // 上传分片
  static upload(params: any) {
    return request.post<BaseResult>({
      url: '/uploadApi/upload',
      params
    })
  }
  
  // 合并分片
  static merge(params: any) {
    return request.post<BaseResult>({
      url: '/uploadApi/merge',
      params
    })
  }
}
